import { EntityId } from '@/services'

export interface PasswordLoginReq {
  loginName: string
  password: string
  tenantId?: string
}

export interface VerificationCodeLoginReq {
  emailOrMobile: string
  verificationCode: string
  tenantId?: string
}

export interface AuthInfo {
  token: string
  principal: {
    authId: EntityId
    identifier: string
    identityType: string
    userId: EntityId
    userNickname: string
    userAvatar: string
    userCreateTime: string
  }
  authorities: string[]
}
